package com.shelpe.services.sinbad.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shelpe.services.sinbad.dao.UserMapper;
import com.shelpe.services.sinbad.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public String getNick(Long userId) {
		return userMapper.selectByPrimaryKey(userId).getNick();
	}

}
